import { FormSchema } from '@/components/Form'

export interface CustomSearchProps {
  schema?: FormSchema[]
  isCol?: boolean
  labelWidth?: string | number
  layout?: 'inline' | 'bottom'
  buttonPosition?: 'left' | 'right' | 'center'
  showSearch?: boolean
  showReset?: boolean
  showExpand?: boolean
  expandField?: string
  inline?: boolean
  removeNoValueItem?: boolean
  model?: Recordable
  // 自定义按钮相关属性
  customButtons?: CustomButtonProps[]
}

export interface CustomButtonProps {
  label: string
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'
  icon?: string
  onClick?: () => void
  loading?: boolean
  disabled?: boolean
  color?: string
  plain?: boolean
}
